﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="NodeType-List.aspx.cs" Inherits="SmartSpace.WebApp.Modules.Orgs.Pages.NodeType_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <table style="width:100%;">
        <tr>
            <td style="width:50%; vertical-align:top;">
                <div class="ss-box">
                    <h1>节点类型列表
                    </h1>
                    <div class="ss-tbar">
                        <a href="NodeType-Add.aspx">添加</a>
                    </div>
                    <table class="ss-list" style="width: 100%;" cellspacing="0" cellpadding="0">
                        <tr>
                            <th style="width: 120px;">编号</th>
                            <th>名称</th>
                            <th>工作岗</th>
                            <th>操作</th>
                        </tr>
                        <asp:Repeater ID="rep1" runat="server" OnItemCommand="rep1_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td><a href='NodeType-List.aspx?ParentTypeId=<%# Eval("Id") %>'><%# Eval("Code") %></a></td>
                                    <td><%# Eval("Caption") %></td>
                                    <td>
                                        <%#Eval("IsPost")%>
                                    </td>
                                    <td>
                                        <a href='NodeType-Edit.aspx?NodeTypeCode=<%# Eval("Code") %>&NodeTypeId=<%# Eval("Id") %>'>编辑</a>
                                        <asp:LinkButton ID="LinkButton1" CommandName="Delete" runat="server" CommandArgument='<%# Eval("Code") %>' Text="删除" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
            <td style="vertical-align:top;">
                <div class="ss-box">
                    <h1>关联节点类型</h1>
                    <div class="ss-tbar">
                        <asp:HyperLink runat="server" Text="添加关联节点" ID="btn_relation"></asp:HyperLink>
                    </div>
                    <table class="ss-list" style="width: 100%;" cellspacing="0" cellpadding="0">
                        <tr>
                            <th>编号</th>
                            <th>名称</th>
                            <th>操作</th>
                        </tr>
                        <asp:Repeater ID="rep2" runat="server" OnItemCommand="rep2_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("Code") %></td>
                                    <td><%# Eval("Caption") %></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButton1" CommandName="Delete" runat="server" CommandArgument='<%# Eval("Id") %>' Text="删除" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
